<template>
  <el-form ref="form" :model="form" label-width="80px" id="el_form1">
    <el-form-item label="姓名" class="el-col-lg-offset-10 ">
      <el-input v-model="form.username"  prefix-icon="iconfont  icon-wo "></el-input>
    </el-form-item>

    <el-form-item label="密码" class="el-col-lg-offset-10">
      <el-input  v-model="form.password" prefix-icon="iconfont  icon-suoding " type="password"></el-input>
    </el-form-item>
    <el-form-item class="el-col-lg-offset-10">
      <el-button type="primary" @click="onSubmit">登陆</el-button>
      <el-button>取消</el-button>
    </el-form-item>
  </el-form>
</template>

<script>
  export default {
    name: 'login',
    created () {

    },
    data() {
      return {
        form: {
          username: 'admin',
          password: '123',

        }
      }
    },
    methods: {
      onSubmit() {
        this.$http.post()
      }
    }

  }
</script>

<style scoped>
  #el_form1{
    margin-top: 9%;
  }
</style>
